﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="score_m.login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" href="resource/css/base.css"/>
    <style>
        body {
            /*background: var(--half_background);*/
            background: linear-gradient(120deg, #aacce6, #7b576f);
            background-size: cover;
            overflow: hidden;
        }

        .cont {
            background-color: #FFF;
            width: 400px;
            height: 370px;
            margin: 160px auto;
            box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
            border-radius: 10px;
            display: flex;
            flex-flow: column;
            justify-content: flex-start;
            align-items: center;
            padding-top: 30px;
        }

        .login-title {
            font-size: 26px;
            font-weight: bold;
            color: #222;
            margin-bottom: 6px;
            text-align: center;
        }

        .login-subtitle {
            font-size: 14px;
            color: #888;
            margin-bottom: 24px;
            text-align: center;
        }

        .form-group {
            display: flex;
            align-items: center;
            width: 80%;
            margin-bottom: 12px;
        }

        .form-group label {
            width: 60px;
            text-align: right;
            margin-right: 10px;
        }

        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-group select {
            width: 250px;
            height: 35px;
            padding: 0 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .error-msg {
            margin-bottom: 10px;
            font-size: 14px;
            text-align: center;
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        
        <div class="cont">
            <div class="login-title">用户登录</div>
            <div class="login-subtitle">欢迎回来，请登录您的账户</div>
            <asp:Label ID="errorMsg" runat="server" ForeColor="Red" Visible="False" CssClass="error-msg"></asp:Label>
            <div class="form-group">
                <asp:Label ID="Label2" runat="server" Text="账号:"></asp:Label>
                <asp:TextBox ID="idInput" runat="server"></asp:TextBox>
            </div>
            <div class="form-group">
                <asp:Label ID="Label3" runat="server" Text="密码:"></asp:Label>
                <asp:TextBox ID="passwordInput" runat="server" TextMode="Password"></asp:TextBox>
            </div>
            <div class="form-group">
                <asp:Label ID="Label1" runat="server" Text="角色:"></asp:Label>
                <asp:DropDownList ID="roleInput" runat="server">
                    <asp:ListItem Value="student">学生</asp:ListItem>
                    <asp:ListItem Value="teacher">教师</asp:ListItem>
                    <asp:ListItem Value="admin">管理员</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div>
                <asp:Button ID="Button1" runat="server" Text=" 登 录 " OnClick="Button1_Click" />
            </div>
        </div>
    </form>
</body>
</html>
